import styles from './index.less';
import { connect, Dispatch, useModel, withRouter } from 'umi';
import { Button } from 'infosysD';

function SecondPage({ todo, dispatch }) {
  return (
    <div>
      <h1 className={styles.secondName}>{todo.secondName}</h1>
      <Button type="primary">Primary Button</Button>
    </div>
  );
}

export default connect(({ todo }: { todo: any }) => ({
  todo,
}))(SecondPage);
